package com.wodsy.phoenix.dataobject.orderc.model;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * ExpressDict entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_express_dict", catalog = "orderc")
public class ExpressDict extends PhoenixObject {

	// Fields

	private Integer id;
	private String name;
	private String code;
	private String group;
	private Integer weight;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public ExpressDict() {
	}

	/** minimal constructor */
	public ExpressDict(Integer id, String name, String code) {
		this.id = id;
		this.name = name;
		this.code = code;
	}

	/** full constructor */
	public ExpressDict(Integer id, String name, String code, String group,
			Integer weight, Date createTime, Date updateTime) {
		this.id = id;
		this.name = name;
		this.code = code;
		this.group = group;
		this.weight = weight;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "code", nullable = false, length = 50)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "group", length = 1)
	public String getGroup() {
		return this.group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	@Column(name = "weight")
	public Integer getWeight() {
		return this.weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Column(name = "create_time", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}